package com.ruoyi.basic.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;

import javax.validation.constraints.NotBlank;

import com.ruoyi.common.annotation.Excels;
import com.ruoyi.common.mybatisplus.core.BaseEntity;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import com.ruoyi.common.annotation.Excel;

/**
 * 行政职务对象 basic_duty
 * 
 * @author ruoyi
 * @date 2021-12-06
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("basic_duty")
public class BasicDuty extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 职务id */
    @TableId(type = IdType.AUTO)
    private Long dutyId;

    /** 用户id */
    private Long userId;

    @TableField(exist = false)
    private String userNo;

    @TableField(exist = false)
    @Excel(name = "员工姓名")
    private String userName;

    @TableField(exist = false)
    @Excel(name = "身份证号", cellType = Excel.ColumnType.STRING)
    private String idCard;

    @TableField(exist = false)
    private Long deptId;

    /** 职务名称 */
    @Excel(name = "职务名称")
    private String dutyName;

    /** 职务级别 */
    @Excel(name = "职务级别", dictType = "basic_duty_level", comboDict = "basic_duty_level")
    private String dutyLevel;

    /** 开始时间 */
    @Excel(name = "开始时间")
    private String startTime;

    /** 结束时间 */
    @Excel(name = "结束时间")
    private String endTime;

    /** 连续人该职起始时间 */
    @Excel(name = "连续任该职起始时间")
    private String continueTime;

    /** 是否默认 */
    @Excel(name = "是否默认", dictType = "sys_yes_no", comboDict = "sys_yes_no")
    private String isDefault;

    /** 附件地址 */
    private String fileUrl;

    /** 删除标志 */
    @TableLogic
    private String delFlag;

    /** 备注 */
    @Excel(name = "备注")
    private String remark;

    @TableField(exist = false)
    private String userType;
}
